<?php $this->jQuery()->onLoadCaptureStart(); ?>
				jQuery('#partyNumber').change(function() 
				{ 
					$.post('/ajax/getsalesrepbycustomer/partynumber/'+$('#partyNumber').val(),{}, 
					function(data) {
	
							$('#salesRepName').val(data['salesRepName'])
					
					}, 'json');
				});
				
				jQuery('#sapCode').change(function() 
				{ 
					$.post('/ajax/getoutletbysapcode/sapcode/'+$('#sapCode').val(),{}, 
					function(data) {
	
							$('#outlet').val(data['outletName'])
					
					}, 'json');
				});
				
								
	<?php $this->jQuery()->onLoadCaptureEnd(); ?>

<div id="content">
<h1><?php echo $this->pageTitle; ?></h1>
<?php echo $this->form; ?>
</div>